package com.aaa.entity;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
@Data
public class Employee {
    private Integer employeeid;
    private String telephone;
    private String password;
    private String name;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:SS")
    private Date hiredate;
    private Integer admin;
    private Integer state;
    private Integer schoolid;
    private String tel;

    public Integer getEmployeeid() {
        return employeeid;
    }

    public void setEmployeeid(Integer employeeid) {
        this.employeeid = employeeid;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getHiredate() {
        return hiredate;
    }

    public void setHiredate(Date hiredate) {
        this.hiredate = hiredate;
    }

    public Integer getAdmin() {
        return admin;
    }

    public void setAdmin(Integer admin) {
        this.admin = admin;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Integer getSchoolid() {
        return schoolid;
    }

    public void setSchoolid(Integer schoolid) {
        this.schoolid = schoolid;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    @Override
    public String toString() {
        return "Employee{" +
                "employeeid=" + employeeid +
                ", telephone='" + telephone + '\'' +
                ", password='" + password + '\'' +
                ", name='" + name + '\'' +
                ", hiredate=" + hiredate +
                ", admin=" + admin +
                ", state=" + state +
                ", schoolid=" + schoolid +
                ", tel='" + tel + '\'' +
                '}';
    }
}
